home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 July / 07_02.iso / software / xq-xsetup / files / setup.exe / {app} / plugins / XQ Active Desktop 3.xpl < prev    next >
Text File  |  2000-12-21  |  2KB  |  63 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="2"
  4. "UIPATH"="Appearance\Desktop\Active Desktop"
  5. "NAME"="Active Desktop Toolbar Options"
  6. "VERSION"="1.06"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Enable moving toolbars"
  9. "TEXT 2"="Enable closing toolbars"
  10. "DESCRIPTION 1"="This plugin allows you to change some settings for Active Desktop."
  11. "DESCRIPTION 2"="NOTE: The "toolbars" are also known as "bars"."
  12. "AUTHOR"="Ojatex@aol.com"
  13. "CONTACTURL"="http://members.aol.com/ojatex/"
  14. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  15. "COMMENT 1"=" "
  16. "COMMENT 2"="Does anybody outside of Redmond really use Active Desktop?"
  17.  
  18. 'note: 0 = disable restriction, 1 = enable restriction
  19.  
  20.  
  21. Sub Plugin_Initialize 
  22.  
  23.  i=RegReadValue("HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop\NoMovingBands")
  24.  if i=0 or IsEmpty(i) then SetUIElement 1,true
  25.  
  26.  i=RegReadValue("HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop\NoCloseDragDropBands")
  27.  if i=0 or IsEmpty(i) then SetUIElement 2,true
  28.  
  29.  
  30. End Sub
  31.  
  32. Sub Plugin_CheckData(ElementIndex)
  33. End Sub
  34.  
  35.  
  36.  
  37. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  38.  
  39.  
  40.  b=GetUIElement(1)
  41.  if b=false then
  42.   Call RegWriteValue("HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop\NoMovingBands","1",2)
  43.  else
  44.   Call RegWriteValue("HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop\NoMovingBands","0",2)
  45.  end if
  46.  
  47.  b=GetUIElement(2)
  48.  if b=false then
  49.   Call RegWriteValue("HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop\NoCloseDragDropBands","1",2)
  50.  else
  51.   Call RegWriteValue("HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\ActiveDesktop\NoCloseDragDropBands","0",2)
  52.  end if
  53.  
  54.  Call Logoff
  55. End Sub
  56.  
  57.  
  58. Sub Plugin_Terminate 
  59. End Sub
  60.  
  61.  
  62.  
  63.